DimenDiagonalSp

EN Utility object for handling SSP (Scalable Sp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SSP (Scalable Sp) no Java.

Functions

Link copied to clipboard
fun dghsp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (dghsp). PT Resolução rápida para Altura da Tela (dghsp).

Link copied to clipboard
fun dghspa(context: Context, value: Int): Float
Link copied to clipboard
fun dghspi(context: Context, value: Int): Float
Link copied to clipboard
fun dghspia(context: Context, value: Int): Float
Link copied to clipboard
fun dghspLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (dghsp), but in landscape orientation it acts as Screen Width (dgwsp).

Link copied to clipboard
fun dghspLwa(context: Context, value: Int): Float
Link copied to clipboard
fun dghspLwi(context: Context, value: Int): Float
Link copied to clipboard
fun dghspLwia(context: Context, value: Int): Float
Link copied to clipboard
fun dghspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (dghsp) with UiModeType override.

Link copied to clipboard
fun dghspPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (dghsp), but in portrait orientation it acts as Screen Width (dgwsp).

Link copied to clipboard
fun dghspPwa(context: Context, value: Int): Float
Link copied to clipboard
fun dghspPwi(context: Context, value: Int): Float
Link copied to clipboard
fun dghspPwia(context: Context, value: Int): Float
Link copied to clipboard
fun dghspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hSP) conditional scaling.

Link copied to clipboard
fun dghspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (dghsp) with rotation override.

Link copied to clipboard
fun dghspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hSP) context conditional scaling.

Link copied to clipboard
fun dgssp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dgssp). PT Resolução rápida para Smallest Width (dgssp).

Link copied to clipboard
fun dgsspa(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dgssp), but in landscape orientation it acts as Screen Height (dghsp).

Link copied to clipboard
fun dgsspLha(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspLhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspLhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dgssp), but in landscape orientation it acts as Screen Width (dgwsp).

Link copied to clipboard
fun dgsspLwa(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspLwi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspLwia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (dgssp) with UiModeType override.

Link copied to clipboard
fun dgsspPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dgssp), but in portrait orientation it acts as Screen Height (dghsp).

Link copied to clipboard
fun dgsspPha(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dgssp), but in portrait orientation it acts as Screen Width (dgwsp).

Link copied to clipboard
fun dgsspPwa(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspPwi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspPwia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swSP) conditional scaling.

Link copied to clipboard
fun dgsspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (dgssp) with rotation override.

Link copied to clipboard
fun dgsspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swSP) context conditional scaling.

Link copied to clipboard
fun dgwemPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale, portrait is Screen Height.

Link copied to clipboard
fun dgwemPha(context: Context, value: Int): Float
Link copied to clipboard
fun dgwemPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgwemPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgwsp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (dgwsp). PT Resolução rápida para Largura da Tela (dgwsp).

Link copied to clipboard
fun dgwspa(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspi(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspia(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (dgwsp), but in landscape orientation it acts as Screen Height (dghsp).

Link copied to clipboard
fun dgwspLha(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspLhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspLhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (dgwsp) with UiModeType override.

Link copied to clipboard
fun dgwspPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (dgwsp), but in portrait orientation it acts as Screen Height (dghsp).

Link copied to clipboard
fun dgwspPha(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgwspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wSP) conditional scaling.

Link copied to clipboard
fun dgwspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (dgwsp) with rotation override.

Link copied to clipboard
fun dgwspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wSP) context conditional scaling.

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java (PX). PT Função de escala genérica para Java (PX).

Link copied to clipboard
fun getDimensionInSp(context: Context, qualifier: DpQualifier, value: Int, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java (SP value). PT Função de escala genérica para Java (valor SP).

Link copied to clipboard
fun hei(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale.

Link copied to clipboard
fun heia(context: Context, value: Int): Float
Link copied to clipboard
fun heii(context: Context, value: Int): Float
Link copied to clipboard
fun heiia(context: Context, value: Int): Float
Link copied to clipboard
fun hemLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale, landscape is Screen Width.

Link copied to clipboard
fun hemLwa(context: Context, value: Int): Float
Link copied to clipboard
fun hemLwi(context: Context, value: Int): Float
Link copied to clipboard
fun hemLwia(context: Context, value: Int): Float
Link copied to clipboard
fun hemPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale, portrait is Screen Width.

Link copied to clipboard
fun hemPwa(context: Context, value: Int): Float
Link copied to clipboard
fun hemPwi(context: Context, value: Int): Float
Link copied to clipboard
fun hemPwia(context: Context, value: Int): Float
Link copied to clipboard
fun scaled(initialBaseValue: Float): DiagonalSp

EN Starts the build chain for the custom dimension DiagonalSp from a base Float. PT Inicia a cadeia de construção para a dimensão customizada DiagonalSp a partir de um Float base.

fun scaled(initialBaseValue: Int): DiagonalSp

EN Starts the build chain for the custom dimension DiagonalSp from a base Int. PT Inicia a cadeia de construção para a dimensão customizada DiagonalSp a partir de um Int base.

Link copied to clipboard
fun sei(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sei) - Without font scale. PT Resolução rápida para Smallest Width (sei) - Sem escala de fonte.

Link copied to clipboard
fun seia(context: Context, value: Int): Float
Link copied to clipboard
fun seii(context: Context, value: Int): Float
Link copied to clipboard
fun seiia(context: Context, value: Int): Float
Link copied to clipboard
fun semLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, landscape is Screen Height.

Link copied to clipboard
fun semLha(context: Context, value: Int): Float
Link copied to clipboard
fun semLhi(context: Context, value: Int): Float
Link copied to clipboard
fun semLhia(context: Context, value: Int): Float
Link copied to clipboard
fun semLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, landscape is Screen Width.

Link copied to clipboard
fun semLwa(context: Context, value: Int): Float
Link copied to clipboard
fun semLwi(context: Context, value: Int): Float
Link copied to clipboard
fun semLwia(context: Context, value: Int): Float
Link copied to clipboard
fun semPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, portrait is Screen Height.

Link copied to clipboard
fun semPha(context: Context, value: Int): Float
Link copied to clipboard
fun semPhi(context: Context, value: Int): Float
Link copied to clipboard
fun semPhia(context: Context, value: Int): Float
Link copied to clipboard
fun semPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, portrait is Screen Width.

Link copied to clipboard
fun semPwa(context: Context, value: Int): Float
Link copied to clipboard
fun semPwi(context: Context, value: Int): Float
Link copied to clipboard
fun semPwia(context: Context, value: Int): Float
Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.

Link copied to clipboard
fun wei(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale.

Link copied to clipboard
fun weia(context: Context, value: Int): Float
Link copied to clipboard
fun weii(context: Context, value: Int): Float
Link copied to clipboard
fun weiia(context: Context, value: Int): Float
Link copied to clipboard
fun wemLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale, landscape is Screen Height.

Link copied to clipboard
fun wemLha(context: Context, value: Int): Float
Link copied to clipboard
fun wemLhi(context: Context, value: Int): Float
Link copied to clipboard
fun wemLhia(context: Context, value: Int): Float